package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Permission;
import cn.wolfcode.crm.qo.QueryObject;
import java.util.List;

public interface PermissionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Permission record);

    Permission selectByPrimaryKey(Long id);

    List<Permission> selectAll();

    int updateByPrimaryKey(Permission record);

//    int getCount();

    List<Permission> query(QueryObject qo);

    /**
     * 查询全部权限表达式
     * @return
     */
    List<String> selectAllPermission();

    /**
     * 根据id查询员工的权限 表达式集合
     * @param employeeId
     * @return
     */
    List<String> getPermissionByEmployeeId(Long employeeId);

   }